package HomeWork;
public class HomeWork08 {

	public static void main(String[] args) {
		/*				行数  星数		空格数 规律
		     *		     1    1            4  5-i
		    * *          2    2            3
		   * * *         3    3            2
		  * * * *        4    4            1
		 * * * * *       5    5            0
		 
		  * * * *        1    4   5-i      1
		   * * *         2    3            2
		    * *          3    2            3
		     *           4    1            4
		 * */

		for(int i = 1;i <= 5; i++){

			for(int a = 1; a <= 5-i; a++){
				System.out.print(" ");
			}
			for(int j = 1; j <= i; j++){

				System.out.print("* ");

			}
			System.out.println();
		}

		for(int i = 1; i <= 4; i++){

			for(int a = 1; a <= i; a++){
				System.out.print(" ");
			}
			for(int j = 1; j <= 5-i; j++){
				System.out.print("* ");
			}
			System.out.println();
		}
	}

}
